package com.atwisdom.star.auth.service.impl;

import com.atwisdom.star.auth.mapper.UserAccountMapper;
import com.atwisdom.star.auth.pojo.UserAccount;
import com.atwisdom.star.auth.service.UserAccountService;
import com.atwisdom.star.common.util.CurrentDbType;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
* @author fushb
* @description 针对表【user_account】的数据库操作Service实现
* @createDate 2022-08-01 10:23:11
*/
@Service
public class UserAccountServiceImpl extends ServiceImpl<UserAccountMapper, UserAccount>
    implements UserAccountService{
    @Autowired
    private CurrentDbType currentDbType;
    @Override
    public Map<String, Object> getTableColumns() {
        System.out.println(currentDbType.getType());
        return this.baseMapper.getTableColumns(currentDbType.getType());
    }
}




